package android.tusnotas.parser.push;

import java.util.List;

import android.tusnotas.beans.ListaNotificaciones;
import android.tusnotas.beans.PushNotification;

import com.thoughtworks.xstream.XStream;

public class PushNotificationXStream extends XStream{

	public PushNotificationXStream (){
		// lists
		this.aliasType("ListaNotificacion", ListaNotificaciones.class);
		this.aliasField("Lista", ListaNotificaciones.class, "notifications");
		this.aliasType("Lista", List.class);
		// notifications
		this.aliasType("Notificacion",PushNotification.class);
		this.aliasField("TipoNotificacion", PushNotification.class, "tipo");
		this.aliasField("IdAula", PushNotification.class, "idAula");
		this.aliasField("IdGrupo", PushNotification.class, "idGrupo");
		this.aliasField("IdArchivo", PushNotification.class, "idArchivo");
		this.aliasField("FechaHoraNotificacion", PushNotification.class, "fechaHoraNotif");
		this.aliasField("Fecha", PushNotification.class, "fecha");
		this.aliasField("FechaEvento", PushNotification.class, "fechaEvento");
		this.aliasField("Cantidad", PushNotification.class, "cantidad");
		
		this.aliasField("TiempoProximoPedido", ListaNotificaciones.class, "nextRequest");
	}
}
